	{% set currentRoute = app.request.attributes.get('_route')  %}
	
	<div class="paginationBar">

		<div class="pageInfo">{{paginator.count}} {% trans %}results{% endtrans %} -  page {{page}} of {{numPages}}</div>

		<br />

		<div class="pages">

			{% if page>1 %}
				<a class="slightly-rounded button small-button" href="{{ path(currentRoute,  app.request.get('_route_params')|merge({'page': 0}) ) }}">{% trans %}Previous{% endtrans %}</a>
			{% else %}
				<a class="inactive slightly-rounded button small-button">{% trans %}Previous{% endtrans %}</a>
			{% endif %}

			{% for i in 1..numPages %}
				{% set className = i==page ? 'inactive' : '' %}
				<a class="slightly-rounded button small-button {{className}}" href="{{ path(currentRoute,  app.request.get('_route_params')|merge({'page': i}) ) }}">{{ i }}</a>
			{% endfor %}

			{% if page<numPages %}
				<a class="slightly-rounded button small-button" href="{{ path(currentRoute,  app.request.get('_route_params')|merge({'page': numPages}) ) }}">{% trans %}Next{% endtrans %}</a>
			{% else %}
				<a class="inactive slightly-rounded button small-button">{% trans %}Next{% endtrans %}</a>
			{% endif %}

		</div>

	</div>